package com.shen.GOF.builder.builderDir;

//具体的建造者
public class Worker extends Builder {
    private Home home;

    public Worker() {
        this.home = new Home();
    }

    @Override
    void build1() {
        home.setBuild1("第一步");
        System.out.println("111");
    }

    @Override
    void build2() {
        home.setBuild2("第2步");
        System.out.println("222");
    }

    @Override
    void build3() {
        home.setBuild3("第3步");
        System.out.println("333");
    }

    @Override
    void build4() {
        home.setBuild4("第4步");
        System.out.println("444");
    }

    @Override
    Home getHome() {
        return home;
    }
}
